package ar.utn.frba.ia.IA_TP1.mapas;


public class Africa extends Mapa {

	@Override
	protected void fillMatrizAdy() {
		matrizAdy[PaisesAfrica.SAHARA.toInt()][PaisesAfrica.SAHARA.toInt()] = true;
		matrizAdy[PaisesAfrica.SAHARA.toInt()][PaisesAfrica.ZAIRE.toInt()] = true;
		matrizAdy[PaisesAfrica.SAHARA.toInt()][PaisesAfrica.ETHIOPIA.toInt()] = true;
		matrizAdy[PaisesAfrica.SAHARA.toInt()][PaisesAfrica.EGYPT.toInt()] = true;
		
		matrizAdy[PaisesAfrica.ETHIOPIA.toInt()][PaisesAfrica.ETHIOPIA.toInt()] = true;
		matrizAdy[PaisesAfrica.ETHIOPIA.toInt()][PaisesAfrica.EGYPT.toInt()] = true;
		matrizAdy[PaisesAfrica.ETHIOPIA.toInt()][PaisesAfrica.SAHARA.toInt()] = true;
		matrizAdy[PaisesAfrica.ETHIOPIA.toInt()][PaisesAfrica.ZAIRE.toInt()] = true;
		matrizAdy[PaisesAfrica.ETHIOPIA.toInt()][PaisesAfrica.SOUTHAFRICA.toInt()] = true;
		
		matrizAdy[PaisesAfrica.EGYPT.toInt()][PaisesAfrica.EGYPT.toInt()] = true;
		matrizAdy[PaisesAfrica.EGYPT.toInt()][PaisesAfrica.SAHARA.toInt()] = true;
		matrizAdy[PaisesAfrica.EGYPT.toInt()][PaisesAfrica.ETHIOPIA.toInt()] = true;
		
		//Madagascar no tiene a nadie como adjacente ..
//		matrizAdy[PaisesAfrica.MADAGASCAR.toInt()][PaisesAfrica.SAHARA.toInt()] = true;
		
		matrizAdy[PaisesAfrica.ZAIRE.toInt()][PaisesAfrica.ZAIRE.toInt()] = true;
		matrizAdy[PaisesAfrica.ZAIRE.toInt()][PaisesAfrica.SAHARA.toInt()] = true;
		matrizAdy[PaisesAfrica.ZAIRE.toInt()][PaisesAfrica.ETHIOPIA.toInt()] = true;
		matrizAdy[PaisesAfrica.ZAIRE.toInt()][PaisesAfrica.SOUTHAFRICA.toInt()] = true;
		
		matrizAdy[PaisesAfrica.SOUTHAFRICA.toInt()][PaisesAfrica.SOUTHAFRICA.toInt()] = true;
		matrizAdy[PaisesAfrica.SOUTHAFRICA.toInt()][PaisesAfrica.ZAIRE.toInt()] = true;
		matrizAdy[PaisesAfrica.SOUTHAFRICA.toInt()][PaisesAfrica.ETHIOPIA.toInt()] = true;
		
		
	}

	@Override
	protected void fillPaises() {
		paises.add(new Pais(36, "Sahara", 60, 65));
		paises.add(new Pais(37, "Ethiopia", 69, 67));
		paises.add(new Pais(38, "Egypt", 72, 62));
//		paises.add(new Pais(36, "Madagascar", 9, 9));
		paises.add(new Pais(39, "Zaire",65,72));
		paises.add(new Pais(40, "SouthAfrica", 69, 76));
	}


	public enum PaisesAfrica{
	    SAHARA(0),
	    ETHIOPIA(1),
	    EGYPT(2),
//	    MADAGASCAR(3),
	    ZAIRE(3),
	    SOUTHAFRICA(4);

		private int numero;
		
		private PaisesAfrica(int n){
			numero = n;
		}
		
		public int toInt(){
			return numero;
		}

	}
	
}
